#pragma once
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;

class Student {
private:
	string name;
	int score;

public:
	Student(string n,int s):name(n),score(s) { }

	string getName() const { return name; }
	int getScore() const { return score; }
};

bool compareStudents(const Student& s1, const Student& s2)
{
	if (s1.getScore() == s2.getScore())
	{
		return s1.getName() < s2.getName();
	}
	return s1.getScore() > s2.getScore();
}